\name{samples}
\alias{samples}
\title{Generation of samples}
\description{Generate several samples of the same size and calculates sums and means.}
\usage{samples(x=c(0,1), nsamples=1, size=1, sums=FALSE, means=FALSE, replace=TRUE, ...)}
\arguments{
  \item{x}{Either a vector of one or more elements from which to choose, or a positive integer.}
  \item{nsamples}{A non-negative integer givind the number of samples.}
  \item{size}{A non-negative integer giving sample size.}
  \item{sums}{A logic value indicating if sums should be calculated.}
  \item{means}{A logic value indicating if means should be calculated.}
  \item{replace}{A logic value indicating is should sampling be with replacement.}
  \item{...}{Rest of parameters passed to sample function.}
}
\author{Alfredo Sánchez Alberca \email{asalber@gmail.com}}
\examples{
samples()
samples(nsamples=4,size=10)
samples(6,nsamples=10,size=100)
}
\seealso{sample}
\keyword{distribution}
